﻿using MediatR;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using xiaodingmarket_Domain.Events.Commodity;
using xiaodingmarket_service.Cache;

namespace xiaodingmarket_Domain.EventHandlers
{
    public class CommodityEventHandler :
        INotificationHandler<CommodityCreateEvent>,
        INotificationHandler<CommodityRemoveEvent>,
        INotificationHandler<CommodityReviewEvent>,
        INotificationHandler<CommodityUpdateEvent>
    {
       
        public Task Handle(CommodityCreateEvent notification, CancellationToken cancellationToken)
        {

            return Task.CompletedTask;
        }

        public Task Handle(CommodityRemoveEvent notification, CancellationToken cancellationToken)
        {
            return Task.CompletedTask;
        }

        public Task Handle(CommodityReviewEvent notification, CancellationToken cancellationToken)
        {
            return Task.CompletedTask;
        }

        public Task Handle(CommodityUpdateEvent notification, CancellationToken cancellationToken)
        {
            return Task.CompletedTask;
        }
    }

}
